package com.brillilab.dao.mapper.experiments;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.brillilab.domain.po.experiments.ExperimentComment;
import com.brillilab.domain.vo.experiments.ExperimentCommentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 实验评论 Mapper 接口
 * </p>
 *
 * @author XuZue
 * @since 2019-04-16
 */
public interface ExperimentCommentMapper extends BaseMapper<ExperimentComment> {

    List<ExperimentCommentVo> selectVoList(@Param("experimentId") Long experimentId,@Param("type")Integer type);

    List<ExperimentCommentVo> selectCommentList(@Param("experimentIds") List<Long> experimentIds);

    void setReadState(Long experimentId);
}
